EMT Practice Test
1. Question Content...
Question1: What is the expected behavior of the following code?
Question3: What is the output of the following piece of code?
Question5: Python's built-in function named open () tries to open a file and returns:
Question6: What is the expected behavior of the following code?
Question7: Can a module run like regular code?
Question8: What is the expected behavior of the following code?
It will:
Question9: The following class hierarchy is given. What is the expected output of the code?
Question10: What is the expected behavior of the following code?
Question14: What is the expected output of the following snippet?
Question15: A method for passing the arguments used by the following snippet is called:
Question16: What is the expected behavior of the following code?
Question17: What is the expected behavior of the following code?
It will:
Question18: Which of the following statements are true? (Select two answers)
Question19: What is the expected behavior of the following snippet?
It will:
Question22: Which of the following invocations are valid? (Select two answers)
Question23: Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b
Question24: Which of the following statements are true? (Select two answers)
Question27: What is the expected behavior of the following code?
Question29: What is true about Object-Oriented Programming in Python? (Select two answers)
Question31: Python strings can be "glued" together using the operator:
Question32: What is the expected behavior of the following code?
Question33: How many lines does the following snippet output?
Question35: What is the expected behavior of the following code?
Question36: The simplest possible class definition in Python can be expressed as:
Question37: The__bases__property contains:
Question38: A file name like this one below says mat: (select three answers)
services. cpython-36.pyc
Question41: Which of the following statements are true? (Select two answers)
Question42: What is the expected output of the following snippet?
Question43: What is true about Object-Oriented Programming in Python? (Select two answers)
Question44: Which of the following lambda definitions are correct? (Select two answers)
Question45: Is it possible to safely check if a class/object has a certain attribute?
Question48: What is true about Python packages? (Select two answers)










